home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------
- //
- // RepView.wfm -- Report Viewer
- //
- // This form is a generic report viewer that you can use
- // to display a report and provide page navigation. The
- // report viewer provides a preview for SDI applications
- // that cannot use the default MDI report window. It also
- // allows MDI applications to provide custom toolbars and
- // menus when a report is being viewed.
- //
- // To use this viewer, in your application set filename
- // property of the repView control. For example:
- /*
- set procedure to "repview.wfm" additive
- f = new RepViewForm()
- f.repView.filename := "aircraft.rep"
- f.open()
- */
- // Dependencies: REPORTBAR.PRG
- //
- //
- // Visual dBASE Samples Group
- //
- // $Revision: 1.3 $
- //
- // Copyright (c) 1997, Borland International, Inc.
- // All rights reserved.
- //
- //---------------------------------------------------------------
- ** END HEADER -- do not remove this line
- //
- // Generated on 09/25/97
- //
- parameter bModal
- local f
- f = new repViewForm()
- if (bModal)
- f.mdi = false // ensure not MDI
- f.readModal()
- else
- f.open()
- endif
-
- class repViewForm of FORM
- with (this)
- onOpen = class::FORM_ONOPEN
- scaleFontBold = false
- height = 21
- left = 14.2857
- top = 0.2727
- width = 67
- text = "Report Viewer"
- icon = "resource #240"
- endwith
-
-
- this.REPVIEW = new REPORTVIEWER(this)
- with (this.REPVIEW)
- height = 21
- width = 67
- metric = 0
- anchor = 6
- endwith
-
-
- // {Linked Method} form.onOpen
- function form_onOpen
- set procedure to "reportbar.prg" additive
- set procedure to "repview.pop" additive
- do "reportBar.prg" with this, this.repView
- do repView.pop with this, "shortcut"
- this.popupMenu := this.shortcut
- return
- endclass
-